<table>
    <tbody>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="dealer"><g:message code="snapshot.creditControl.dealer" default="Dealer" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'dealer', 'errors')}">
                <g:select name="dealer.id" from="${org.icress.fusion.b2b.Dealer.list()}" optionKey="id" value="${creditControlInstance?.dealer?.id}"  />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="orderAmount"><g:message code="snapshot.creditControl.orderAmount" default="Order Amount" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'orderAmount', 'errors')}">
                <g:textField name="orderAmount" value="${fieldValue(bean: creditControlInstance, field: 'orderAmount')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="openingSell"><g:message code="snapshot.creditControl.openingSell" default="Opening Sell" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'openingSell', 'errors')}">
                <g:textField name="openingSell" value="${fieldValue(bean: creditControlInstance, field: 'openingSell')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="receivableAmout"><g:message code="snapshot.creditControl.receivableAmout" default="Receivable Amout" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'receivableAmout', 'errors')}">
                <g:textField name="receivableAmout" value="${fieldValue(bean: creditControlInstance, field: 'receivableAmout')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="receivableNote"><g:message code="snapshot.creditControl.receivableNote" default="Receivable Note" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'receivableNote', 'errors')}">
                <g:textField name="receivableNote" value="${fieldValue(bean: creditControlInstance, field: 'receivableNote')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="receivable"><g:message code="snapshot.creditControl.receivable" default="Receivable" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'receivable', 'errors')}">
                <g:textField name="receivable" value="${fieldValue(bean: creditControlInstance, field: 'receivable')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="credit"><g:message code="snapshot.creditControl.credit" default="Credit" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'credit', 'errors')}">
                <g:textField name="credit" value="${fieldValue(bean: creditControlInstance, field: 'credit')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="creditExceed"><g:message code="snapshot.creditControl.creditExceed" default="Credit Exceed" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'creditExceed', 'errors')}">
                <g:textField name="creditExceed" value="${fieldValue(bean: creditControlInstance, field: 'creditExceed')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="creditBalance"><g:message code="snapshot.creditControl.creditBalance" default="Credit Balance" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'creditBalance', 'errors')}">
                <g:textField name="creditBalance" value="${fieldValue(bean: creditControlInstance, field: 'creditBalance')}" />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="dateCreated"><g:message code="snapshot.creditControl.dateCreated" default="Date Created" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'dateCreated', 'errors')}">
                <g:datePicker name="dateCreated" value="${creditControlInstance?.dateCreated}"  />
            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="lastUpdated"><g:message code="snapshot.creditControl.lastUpdated" default="Last Updated" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: creditControlInstance, field: 'lastUpdated', 'errors')}">
                <g:datePicker name="lastUpdated" value="${creditControlInstance?.lastUpdated}"  />
            </td>
        </tr>
    
    </tbody>
</table>
